﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Moving03.Classes;

namespace Moving03
{
    public partial class WebForm6 : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (User.Identity.IsAuthenticated == false)
            {
                Response.Redirect("Login.aspx");
            }
            if (User.Identity.IsAuthenticated == true && User.IsInRole("Admin"))
            {
                Response.Redirect("Administrator/ThongtinAdmin.aspx");
            }
            if (User.Identity.IsAuthenticated == true && !User.IsInRole("Admin"))
            {
                Response.Redirect("Default.aspx");
            }
        }
    }
}